package com.laicunba.pojo;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.stereotype.Component;

import com.laicunba.annotation.MyColumn;
import com.laicunba.annotation.MyTable;

@MyTable
@Component
public class UserPackageItemDO extends BaseDO {
	private String userId;
	private String name;
	private String type;
	private String summary;
	@MyColumn(type = "bool DEFAULT false")
	private boolean used; // 是否使用
	private Date usedTime;
	private Date beginTime;
	private Date endTime;
	private BigDecimal amount;

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	@MyColumn(type = "int DEFAULT 0")
	private int tips; // 提示次数

	public void setTips(int tips) {
		this.tips = tips;
	}

	public int getTips() {
		return tips;
	}

	public String getUserId() {
		return userId;
	}

	public String getName() {
		return name;
	}

	public String getType() {
		return type;
	}

	public String getSummary() {
		return summary;
	}

	public boolean isUsed() {
		return used;
	}

	public Date getUsedTime() {
		return usedTime;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public void setUsed(boolean used) {
		this.used = used;
	}

	public void setUsedTime(Date usedTime) {
		this.usedTime = usedTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

}
